<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./晚页面.css">
</head>

<body>
    <div class="box">
        <div class="left">
            <span class="s1">AdminLTE3</span>
            <span class="s2">Alexander pierce</span>
            <ul>
                <li>Dashboard</li>
                <li>aaaaaa</li>
                <li>aaaaaa</li>
            </ul>
            <ol>
                <li>Widgets</li>
                <li>aaaaaa</li>
                <li>aaaaaa</li>
                <li>aaaaaa</li>
            </ol>
            <ul>
                <li>EXAMPLES</li>
                <li>aaaaaa</li>
                <li>aaaaaa</li>
                <li>aaaaaa</li>
            </ul>
        </div>
        <div class="right">
            <div class="up">
                <ul class="rtd1">
                    <li>选项</li>
                    <li>Home</li>
                    <li>Contact</li>
                    <li><input type="text" placeholder="Search"></li>
                </ul>
                <ul class="rtd2">
                    <li>微信</li>
                    <li>铃铛</li>
                    <li>菜单</li>
                </ul>
            </div>
            <section>
                <div>Dashboard v3</div>
                <div class="dd1">
                    <span class="jia">Home</span>/Dashboard v3
                </div>
            </section>
            <ul class="tubiao">
                <li>
                    <header>Products &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;用户 &nbsp;菜单</header>
                    <section id="li"></section>
                </li>
                <li>
                    <header>Products &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;用户 &nbsp;菜单</header>
                    <section id="li2"></section>
                </li>
                <li>
                    <header>Products &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;用户 &nbsp;菜单</header>
                    <table>
                        <thead>
                            <tr>
                                <th>Products</th>
                                <th>Price</th>
                                <th>Sales</th>
                                <th>More</th>
                            </tr>
                        </thead>
                        <tbody>
                            <!-- <tr>
                                <td>aggsgrhrhe</td>
                                <td>sgsgswrw</td>
                                <td>wgwww</td>
                                <td>放大镜</td>
                            </tr> -->
                        </tbody>
                    </table>
                </li>
                <li>
                    <header>Products &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;用户 &nbsp;菜单</header>
                </li>
            </ul>
        </div>
    </div>
</body>

</html>
<script src="https://cdn.bootcdn.net/ajax/libs/Mock.js/1.0.0/mock.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/echarts/5.4.0/echarts.js"></script>
<script src="./晚页面接口.js"></script>
<script src="./promise封装ajax.js"></script>
<script>
    var biao = document.querySelector('#li')
    var e = echarts.init(biao);
    //绘制图表
    e.setOption({
        title: { //图表的标题
            text: 'Online Store Visitors',
            left: 'center',
        },
        legend: { //图例
            bottom: 25,
            // right:10,
        },
        xAxis: { //x轴设置
            data: ['18th', '20th', '22th', '24th', '26th', '28th', '30th']
        },
        yAxis: { //y轴设置
            splitLine: {
                show: true
            }
        },
        series: [ //数据系列
            {
                name: 'This Week',
                type: 'line',//'line' , 'bar' , 'pie'
                data: [100, 120, 170, 160, 180, 176, 160],
                symbolSize: 15, //圆点大小
                symbol: 'circle',//圆点形状
                smooth: true, //是否平滑曲线显示
                itemStyle: {
                    normal: {
                        color: 'blue', //折线颜色
                        borderWidth: 2, //圆点的边框宽度
                        borderColor: 'white', //圆点的边框颜色
                        lineStyle: { width: 2 }, //折现的宽度
                        shadowBlur: 5,
                        shadowColor: '#188df0'

                    }
                }
            },
            {
                name: 'last Week',
                type: 'line',//'line' , 'bar' , 'pie'
                data: [60, 80, 65, 60, 83, 80, 100],
                symbolSize: 15, //圆点大小
                symbol: 'circle',//圆点形状
                smooth: true, //是否平滑曲线显示
                itemStyle: {
                    normal: {
                        color: 'gruy', //折线颜色
                        borderWidth: 2, //圆点的边框宽度
                        borderColor: 'white', //圆点的边框颜色
                        lineStyle: { width: 2 }, //折现的宽度
                        shadowBlur: 5,
                        shadowColor: '#188df0'

                    }
                }

            }

        ]
    });
    var li2 = document.querySelector('#li2');
    var e = echarts.init(li2);

    //2.绘制图表
    e.setOption({
        title: { //图表的标题
            text: 'Sales',
            left: 'View Report',
        },
        legend: { //图例
            bottom: 25,
        },
        xAxis: { //x轴设置
            data: ['JUN', 'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC']
        },
        yAxis: { //y轴设置
            splitLine: {
                show: false
            }
        },
        series: [ //数据系列
            {
                name: 'This year',
                barWidth: 30, //柱子的宽度
                showBackground: true,//显示背景色
                color: '#83bff6',
                type: 'bar',//'line' , 'bar' , 'pie'
                data: [70, 50, 89, 60, 40, 11, 22]
            },
            {
                name: 'Last year',
                barWidth: 30, //柱子的宽度
                showBackground: true,//显示背景色
                color: '#63bf00',
                type: 'bar',//'line' , 'bar' , 'pie'
                data: [40, 30, 79, 70, 50, 33, 44]
            }
        ]
    });

    // 3.数据3的渲染
    render(data.list)
    function render(data) {
        var str = data.map((item, index) => {
            return `<tr>
                <td>${item.Products}</td>
                <td>${item.Price}</td>
                <td>${item.Sales}</td>
                <td>放大镜</td>
        </tr>`
        }).join('')
        document.querySelector('tbody').innerHTML = str
    }
</script>